/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-06-01 10:00:03
 * @LastEditTime : 2023-08-27 10:46:03
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Common\Router\MenuNav\ThrRouter\EventList.jsx
 * @Description  :
 */
import { API_LIST } from '../../../Api/Api'
import { commonTableList } from '../Common/common'

export const EventList = async ({ twoData, ClientData }) => {
    let dataList = {
        uuid: twoData.uuid,
        width: 1000,
        pageSize: 10,
        params: { pageIndex: 1 },
        get: API_LIST()['getPerson'],
        pos: 'posEventDetails',
        assemblyData: e => {
            return {
                eventListUuid: twoData.uuid,
                tableName: e[0].tableName,
                updateUserName: e[0].tableName,
                updateUserUuid: e[0].uuid,
                remark: '',
                eventStatus: 1,
            }
        },
        columns: [
            {
                title: '人员id',
                dataIndex: 'userUuid',
                search: false,
                type: 'hidden',
                hideInTable: true,
            },
            { ...commonTableList.organizationUuid, valueEnum: ClientData.organization },
            {
                title: '姓名',
                dataIndex: 'tableName',
                search: false,
            },
            {
                title: '手机号',
                dataIndex: 'mobile',
            },
        ],
    }

    return dataList
}
